package com.yueshop.product.feign;

import com.yueshop.common.utils.R;
import com.yueshop.product.feign.fallback.SeckillFeignServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "yueshop-seckill",fallback = SeckillFeignServiceFallback.class )
public interface SeckillFeignService {


    @GetMapping("/sku/seckill/{skuId}")
     R getSkuSeckillInfo(@PathVariable("skuId") Long skuId);

}
